/*
 * Copyright (C) 2010 TopCoder Inc., All Rights Reserved.
 */
package com.hercules.android.receiver.entities;

import com.hercules.android.receiver.Config;

/**
 * <p>
 * A POJO contains the data of XREAlphaAnimation resource.
 * </p>
 * 
 * @author TCSASSEMBER
 * @version 1.0
 */
public class XREAlphaAnimation extends XREObject {
    /**
     * Represents the duration that animation should run.
     */
    private Integer duration;

    /**
     * Represents the easing function to use.
     */
    private String easing;

    /**
     * Represents the desired alpha value at the end of the animation.
     */
    private Double alpha;

    /**
     * Default constructor. Set the default values.
     */
    public XREAlphaAnimation() {
        super();
        easing = Config.XRE_EASING_LINEAR_IN;
    }

    /**
     * Gets the desired alpha value at the end of the animation.
     * 
     * @return the desired alpha value at the end of the animation
     */
    public Double getAlpha() {
        return alpha;
    }

    /**
     * Sets the desired alpha value at the end of the animation.
     * 
     * @param alpha
     *            the desired alpha value at the end of the animation
     */
    public void setAlpha(Double alpha) {
        this.alpha = alpha;
    }

    /**
     * Gets the duration that animation should run.
     * 
     * @return the duration that animation should run
     */
    public Integer getDuration() {
        return duration;
    }

    /**
     * Sets the duration that animation should run.
     * 
     * @param duration
     *            the duration that animation should run
     */
    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    /**
     * Gets the easing function to use.
     * 
     * @return the easing function to use.
     */
    public String getEasing() {
        return easing;
    }

    /**
     * Sets the easing function to use.
     * 
     * @param easing
     *            the easing function to use
     */
    public void setEasing(String easing) {
        this.easing = easing;
    }

}
